<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <img src="imagese/1.jpg">
    <script type="text/javascript">
        window.onload = function() {
            var imgArr = document.getElementsByTagName("img");
            setTimeout(fn, 5000);

            function fn() {
                imgArr[0].style.display = "none";
                imgArr[1].style.display = "none";
            }
        }
    </script>
</body>

</html>